
FROM nginx:alpine
LABEL MAINTAINER="dcom-ui"

RUN apk add --no-cache  gettext tzdata   && \
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" >  /etc/timezone && \
    date && \
    apk del tzdata

COPY .nginx/dcom.conf /etc/nginx/conf.d/dcom.conf
COPY .nginx/edcom.conf /etc/nginx/conf.d/edcom.conf
COPY ./dist /usr/share/nginx/html
RUN rm -f /etc/nginx/conf.d/default.conf
RUN cat /etc/nginx/nginx.conf
RUN cat /etc/nginx/conf.d/dcom.conf
RUN cat /etc/nginx/conf.d/edcom.conf
RUN ls -al /usr/share/nginx/html
CMD ls -al /usr/share/nginx/html
